package com.moneywelcome.investfacade.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;


@Data
@ApiModel("发表评论参数对象")
public class CommentVo {
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "用户id",required = true)
    private Integer userid;
    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "黄金id",required = true)
    private Integer goldId;
    @Length(max = 50, min = 4, message = "评论长度须在4-50字之间")
    @ApiModelProperty(value = "评论内容",required = true)
    private String commentContent;
}
